/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boundless.calculator;

import boundless.entities.Stats;

/**
 *
 * @author hendrikdekock
 */
public class OffensePlayerCalculator {
    
    public static int calculate(Stats s) {
        int total = 0;
        total += (s.getPassingyards() / 25);
        total += 4 * s.getPassingtouchdowns();
        total += 6 * s.getRushingtouchdowns() + s.getReceivingtouchdowns() + s.getFumblesrecovered();
        total += 2 * s.getConversions();
        total += (s.getRushingyards() / 10);
        total += (s.getReceivingyards() / 10);
        
        total -= 2 * (s.getInterceptionslost() + s.getFumbleslost());
        
        return total;
    }
    
}
